import request from '@/utils/request'

// 查询prescriptiontype列表
export function listPrescriptiontype(query) {
  return request({
    url: '/zhongyao/prescriptiontype/list',
    method: 'get',
    params: query
  })
}

// 查询prescriptiontype详细
export function getPrescriptiontype(prescriptionkey) {
  return request({
    url: '/zhongyao/prescriptiontype/' + prescriptionkey,
    method: 'get'
  })
}

// 新增prescriptiontype
export function addPrescriptiontype(data) {
  return request({
    url: '/zhongyao/prescriptiontype',
    method: 'post',
    data: data
  })
}

// 修改prescriptiontype
export function updatePrescriptiontype(data) {
  return request({
    url: '/zhongyao/prescriptiontype',
    method: 'put',
    data: data
  })
}

// 删除prescriptiontype
export function delPrescriptiontype(prescriptionkey) {
  return request({
    url: '/zhongyao/prescriptiontype/' + prescriptionkey,
    method: 'delete'
  })
}
